import http from "@/utils/request"

export default {
	list: {
		method: `admin.adminUser.index`,
		name: "员工列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	info: {
		method: `admin.adminUser.info`,
		name: "员工",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	store: {
		method: `admin.adminUser.store`,
		name: "员工保存",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	changeStatus: {
		method: `admin.adminUser.changeStatus`,
		name: "员工保存",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	deleteAdminUser: {
		method: `admin.adminUser.deleteAdminUser`,
		name: "删除员工",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	edit: {
		method: `admin.adminUser.edit`,
		name: "员工修改数据",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	rePassword: {
		method: `admin.adminUser.rePassword`,
		name: "修改用户密码",
		post: async function (params) {
			return await http.post(this.method, params);
		}
	},
	resetPassword: {
		method: `admin.adminUser.resetPassword`,
		name: "修改用户密码",
		post: async function (params) {
			return await http.post(this.method, params);
		}
	},
}
